package com.crois.barrier.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhimydou.zdf.wf.domain.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;
/**
 * barrier 实例信息表
 *
 * @author Hou Ze Yu
 * @version 1.0
 * @date 2021-10-25 11:58:26
 **/
@TableName("t_ip_and_weight")
@Getter
@Setter
@ToString
public class IpAndWeight extends AbstractBizEntity<Integer,Long> {


   /**
    *  
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

   /**
    *  api路由id
    */
    @TableField("api_route_id")
    private Integer apiRouteId;

   /**
    *  ip
    */
    @TableField("ip")
    private String ip;

   /**
    *  权重
    */
    @TableField("weight")
    private Integer weight;

   /**
    *  版本
    */
    @TableField("version")
    private String version;

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }
}